//**********租户-应用管理员表***********/;
import request from '@/utils/request.js';

/**
 * 保存
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  createBy:'', //$column.comments 	类型:string 非必填
 *  createDate:'', //$column.comments 	类型:string 非必填
 *  id:'', //管理平台用户ID 	类型:integer 非必填
 *  tenantAppId:'', //租户应用ID 	类型:integer 非必填
 *  tenantId:'', //租户ID 	类型:integer 非必填
 *  tenantUserId:'', //租户用户ID 	类型:integer 非必填
 * @returns
 * ********
 */
export function postTenantAppmanager(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/tenant/appmanager`,
    ...config,
  }) 
}

/**
 * 修改
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  createBy:'', //$column.comments 	类型:string 非必填
 *  createDate:'', //$column.comments 	类型:string 非必填
 *  tenantAppId:'', //租户应用ID 	类型:integer 非必填
 *  tenantId:'', //租户ID 	类型:integer 非必填
 *  tenantUserId:'', //租户用户ID 	类型:integer 非必填
 * @returns
 * ********
 */
export function putTenantAppmanager(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/tenant/appmanager`,
    ...config,
  }) 
}

/**
 * 删除
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 // 类型 array
 * []integer
 * @returns
 * ********
 */
export function deleteTenantAppmanager(data=[], config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/tenant/appmanager`,
    ...config,
  }) 
}

/**
 * 详情
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params_in_path 参数 
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getTenantAppmanagerInfoById(params_in_path, config={}){
  return request({
    method: 'get',
    url: `/api/tenant/appmanager/info/${params_in_path.id}`,
    ...config,
  }) 
}

/**
 * 分页列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * @returns
 * ********
 */
export function getTenantAppmanagerPageList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/tenant/appmanager/page/list`,
    ...config,
  }) 
}